#pragma once

#include <vector>
#include "CLogRecord.h"

class CLogBatch
{
public:
	CLogBatch();
		~CLogBatch();
	
	void SetTableName(const std::string& tableName);
	const std::string& GetTableName() const;
	
	void AddRecord(const CLogRecordPtr& field);
	
	const std::vector<CLogRecordPtr>& GetRecords() const;
		
	int enumLogRecord(const std::function<int(CLogRecordPtr)>& callback);
private:
	std::string m_tableName;
	std::vector<CLogRecordPtr> m_fields;
	int m_logLevel;
};
typedef std::shared_ptr<CLogBatch> CLogBatchPtr;

